home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Collection of Tools & Utilities
/
Collection of Tools and Utilities.iso
/
batchut
/
ifexist.zip
/
README.BAT
< prev
next >
Wrap
DOS Batch File
|
1987-10-05
|
2KB
|
49 lines
Echo Off
Cls
Echo
╔════════════════════════════════════════════════════════════════════════╗
Echo ║
"IF EXIST" Utilities «*» Version 1.0 «*» 05 Oct 1987 «*» Davy Crockett
║
Echo ╚════════════════════════════════════════════════════════════════════════╝
Echo
Echo TYPEOF.COM : Usage: TYPEOF [drive:]
Echo
Echo Returns an error level depending on the type of DOS being used.
Echo Currently only checks for: IBM 3.1, NCR 3.1, and Leading Edge 3.1.
Echo
Echo DIROF.COM : Usage: DIROF [pathname]
Echo
Echo Returns an error level indicating whether the specified directory exists.
Echo
Echo FILEOF.COM : Usage: FILEOF [pathname]
Echo
Echo Returns an error level indicating whether the specified file exists.
Echo
Echo MONOF.COM : Usage: MONOF [garbage]
Echo
Echo Returns an error level indicating the type of monitor (mono/color).
Echo
Pause
Cls
Echo
╔════════════════════════════════════════════════════════════════════════╗
Echo ║
"IF EXIST" Utilities «*» Version 1.0 «*» 05 Oct 1987 «*» Davy Crockett
║
Echo ╚════════════════════════════════════════════════════════════════════════╝
Echo
Echo Note 1: All programs may be executed without a parameter and they will
Echo display a list of their respective return codes (errorlevel).
Echo
Echo Note 2: These routines will not cause the dreaded "Abort, Retry or
Echo Ignore?" message from DOS. They will instead return an
Echo error level of 0 indicating that there is no diskette in
Echo the drive.
Echo
Echo Note 3: These routines will NOT work on files located on a LAN.
Echo
Echo Note 4: I am not sure if TYPEOF.COM will work on a bootable Bernoulli
Echo cartridge. Any feedback would be appreciated. The other two
Echo routines will work on Bernoulli cartridges.
Echo
Echo Note 5: Sample .BAT files have been included: TO.BAT for TYPEOF.COM,
Echo FO.BAT for FILEOF.COM, DO.BAT for DIROF.COM and MO.BAT for
Echo MONOF.COM.
Echo
Pause